package plus.decl;
import java.util.*;

import plus.Type;

public class Signature {
	private List<Segment> segments = new LinkedList<Segment>();
	public void add(Segment segment) { segments.add(segment); }
	public int parameterCount() {
		int c = 0;
		for (Segment s:segments) c += s.nameCount();
		return c;
	}
	public void enterParams(Type[] domain) {
		int p = 0;
		for (Segment s:segments) p+= s.enterParams(domain, p);
	}
}
